import request from "@/utils/request";
export const getAll=(name,gender,page,pageSize)=>request.get(`/user?name=${name}&gender=${gender}&page=${page}&pageSize=${pageSize}`)
export const login=(data)=>request.post(`/user/login`,data)
export const addApi=(data)=>request.post('/user/add',data)
export const queryByIdApi=(id)=>request.get(`/user/${id}`)
export const updateApi=(data)=>request.put('/user',data)
export const deleteApi=(id)=>request.delete(`/user?id=${id}`)